<%@ page contentType="text/html;charset=UTF-8" %>
<script src="${ctx}/static/js/template.js" type="text/javascript"></script>
<script>window.template()</script>
<script type="text/html" id="cashRevenueTmpl">
    <* if(list != null && list.length > 0){ *>
		<* for(var i = 0; i < list.length ; i ++) { *>
		<* var data = list[i]; *>
			<li class="ui-border-t">
				<div class="ui-row-flex" style="font-size: 17px;">
					<div class="ui-col ui-col-2">
						<span><*:=data.carNo*></span>
					</div>
					<div class="ui-col" style="text-align: right; padding-right: 10px">￥<* var beforeMoney=(data.needPayCharge/10).toFloat(2)*><*:=beforeMoney*></div>
				</div>
				<div class="ui-row-flex" style="margin-top: 3px">
					<div class="ui-col ui-col-2">
						<h5 class="ui-txt-info"><*:=data.inTime*></h5>
					</div>
					<div class="ui-col" style="text-align: right; padding-right: 10px">
						<h5 class="ui-txt-info">停车卷:￥<* var afterCoupon=(data.couponMoney/10).toFloat(2)*><*:=afterCoupon*></h5>
					</div>
				</div>
				<div class="ui-row-flex">
					<div class="ui-col ui-col-2">
						<h5 class="ui-txt-info">
						<*:=data.outTime*>
						</h5>
					</div>
					<div class="ui-col" style="text-align: right; padding-right: 10px">
						<h5 class="ui-txt-info">实际金额:<span>￥<* var afterMoney=(data.charge/10).toFloat(2)*><*:=afterMoney*></span></h5>
					</div>
				</div>
			</li>
		<* } *>
	<* } *>
</script>

<script type="text/html" id="cashRevenueTmplNoData">
    <div class="ui-flex ui-flex-ver ui-flex-pack-center ui-flex-align-start"
         style="height: 100%; overflow: auto; background-color: #f8f8f8">
        <div id="noCashTransDiv" class="div-noUnpay">
            <div>
                <img alt="" src="<*:=ctx *>/static/image/recharge/nodata.png" width="40%">
            </div>
            <div class="div-text" style="padding-top: 20px">无现金收入记录</div>
        </div>
    </div>
</script>

<script type="text/html" id="platformRevenueTmpl">
    <* if(list != null && list.length > 0) { *>
    <* for (var i = 0 ; i < list.length ; i++) { *>
    <* var data = list[i]; *>

    <li class="ui-border-t">
        <div class="ui-row-flex" style="font-size: 17px;">
            <div class="ui-col ui-col-2">
                <span style="font-size: 20px;"><*:=data.carNo*></span>
                <p class="ui-txt-info" style="font-size: 15px;">
                    入场时间:
                    <* var inTime = data.inTime.toDateString() *>
                    <*:= inTime*>
                </p>
                <p class="ui-txt-info" style="font-size: 15px;">
                    出场时间:
                    <* var outTime = data.outTime.toDateString() *>
                    <*:= outTime*>
                </p>
            </div>
            <div class="ui-col"
                 style="font-size: 30px;padding-top:10px; padding-right: 5px; text-align: right;">
                <* var changeMoney = ((data.charge) / 10).toFloat() *>
                ￥<*:= changeMoney*>
            </div>
        </div>
    </li>

    <* } *>
    <* } *>
</script>


<script type="text/html" id="platformRevenueTmplNoData">

    <div class="ui-flex ui-flex-ver ui-flex-pack-center ui-flex-align-start"
         style="height: 100%; overflow: auto; background-color: #f8f8f8">
        <div id="noPlatformTransDiv" class="div-noUnpay">
            <div>
                <img alt="" src="<*:=ctx *>/static/image/recharge/nodata.png" width="40%">
            </div>
            <div class="div-text" style="padding-top: 20px">无慧付单收入记录</div>
        </div>
    </div>

</script>

